home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / vbcc / machines / amiga68k / libsrc / stdlib / system.c < prev   
Encoding:
C/C++ Source or Header  |  1995-07-18  |  428 b   |  19 lines

  1. #include <utility/TagItem.h>
  2. #include <dos/dos.h>
  3. #include <exec/libraries.h>
  4.  
  5. static struct TagItem _systemlist[]={ { TAG_END,0 } }; /* No Tags */
  6. extern struct Library *DOSBase;
  7.  
  8. int system(const char *string)
  9. {
  10.     if(string==NULL){
  11.         return 1;
  12.     }else{
  13.         if(DOSBase->lib_Version>=36)
  14.             return SystemTagList((char *)string,_systemlist);
  15.         else
  16.             return(Execute(string,0L,0L));
  17.     }
  18. }
  19.